<?php

namespace App\Admin\Controllers;

use Encore\Admin\Grid;
use App\Models\AttributeValue;
use Encore\Admin\Controllers\AdminController;

class AttributeValuesController extends AdminController
{
    protected $title = '系统维护商品属性';

    protected function grid()
    {
        $grid = new Grid(new AttributeValue());

        $grid->column('id', 'ID');
        $grid->column('product_id', '商品');
        $grid->column('attribute_key_id', '属性名');
        $grid->column('value', '属性值');
	
	    $grid->disableFilter();
	    $grid->disableExport();
	    $grid->disableCreateButton();
	    $grid->disableBatchActions();
	    $grid->disableColumnSelector();
	    $grid->disableActions();
	    
        return $grid;
    }
}
